<?php

namespace Admin\Models\crm;

class XhcustContact extends basicModel
{

    /**
     *
     * @var integer
     * @Primary
     * @Identity
     * @Column(type="integer", length=11, nullable=false)
     */
    public $iCUCId;


    public $iUserId;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $iCUId;

    /**
     *
     * @var string
     * @Column(type="string", length=50, nullable=true)
     */
    public $sName;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $sJob;

    /**
     *
     * @var string
     * @Column(type="string", length=20, nullable=true)
     */
    public $sPhoneNum;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $sPersonality;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $sHobby;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $mDesc;

    /**
     *
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $bDefault;

    /**
     *
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $bDelete;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tCreateDate;

    /**
     *
     * @var string
     * @Column(type="string", length=20, nullable=true)
     */
    public $iCreateUserId;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tLastModifyDate;

    /**
     *
     * @var string
     * @Column(type="string", length=20, nullable=true)
     */
    public $iLastModifyUserId;




    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     * create by dale 20180305
     */
    public $sSubjects;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     * create by dale 20180305
     */
    public $sGrades;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     * create by dale 20180305
     */
    public $iDuty;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     * create by dale 20180305
     */
    public $sClasses;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     *
     * create by dale 20180305
     */
    public $bCharge;


    /**
     * Initialize method for model.
     */
    public function initialize()
    {
        $this->setSource("XHCust_Contact");
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHCust_Contact';
    }


    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhcustContact[]|XhcustContact
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhcustContact
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

}
